<!DOCTYPE html>
<html>
    <head>
        <title>A Simple Page with CKEditor</title>
        <!-- 请确保CKEditor文件路径正确 -->
        <script src="{{ url_for('static', filename='ckeditor/ckeditor.js') }}"></script>
        <script src="{{ url_for('static', filename='ckeditor/translations/zh-cn.js' }}"></script>
        <link  type="text/css" rel="stylesheet" href="{{ url_for('static',filename='ckeditor/sample/css/sample.css' }}">
        <!--<script src="//cdn.ckeditor.com/4.4.6/standard/ckeditor.js"></script>-->
    </head>
    <body>
        <form>
            <textarea name="editor1" id="editor1"  rows="10" cols="80">
                This is my textarea to be replaced with CKEditor.
            </textarea>
            <script>
                // 用CKEditor替换<textarea id="editor1">
                // 使用默认配置
                CKEDITOR.replace('editor1');
            </script>
        </form>
    </body>
</html>